<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<ui:composition template="/paginas/masterPage.xhtml">
<ui:param name="tituloPagina" value="Editar Laboratorio"/>
<ui:define name="conteudo">    

<h:outputLabel value="Editar Laboratorio" styleClass="titulo" /> <hr/><br/>
 		
<h:form id="frmPesquisaLaboratorio">
	<p:panel header="Dados Laboratorio">
	 	<p>
			<h:outputLabel for="nmLaboratorio" value="Laboratorio " styleClass="OutputLabelCampo" />
			<p:inputText id="nmLaboratorio" value="#{laboratorioBean.laboratorio.nome}"  />
		</p>
		<p>
			<h:outputLabel for="cnpj" value="CNPJ: " styleClass="OutputLabelCampo" />  
	 		<p:inputMask id="cnpj" maxlength="20" value="#{laboratorioBean.laboratorio.cnpj}" mask="99.999.999/9999-99">
	 			<f:converter converterId="farmaciaweb.com.br.CnpjConverter" />
	 		</p:inputMask>
		</p>
		<p>
			<h:outputLabel for="endereco" value="Endereco " styleClass="OutputLabelCampo" />
			<p:inputText id="endereco" value="#{laboratorioBean.laboratorio.endereco}"  />
		</p>	 	
		<p>
			<h:outputLabel for="email" value="Email " styleClass="OutputLabelCampo" />
			<p:inputText id="email" value="#{laboratorioBean.laboratorio.email}"  />
		</p>
		<p>
			<h:outputLabel for="site" value="Site " styleClass="OutputLabelCampo" />
			<p:inputText id="site" value="#{laboratorioBean.laboratorio.homepage}"  />
		</p>
		<p>
			<h:outputLabel for="telefone" value="Telefone: " styleClass="OutputLabelCampo" />  
	 		<p:inputMask id="telefone" maxlength="20" value="#{laboratorioBean.laboratorio.telefone}" mask="(99) 9999-9999">
	 			<f:converter converterId="farmaciaweb.com.br.TelefoneConverter" />
	 		</p:inputMask>
		</p>
	</p:panel>
			
 			
				<p class="buttonPosition">
					<p:commandButton id="btSalvar" value="Salvar" ajax="false" 
						action="#{laboratorioBean.salvarLaboratorio}" styleClass="botao" />
            	<p:commandButton
						action="#{laboratorioBean.irParaConsultarLaboratorio}" value="Voltar"
						immediate="true" ajax="true"
						image="ui-icon ui-icon-arrowreturnthick-1-w" />
           		 </p>
 		</h:form>
 	</ui:define> 
</ui:composition>
</html>